namespace unvs.human
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class hrm_Departments
    {
        public hrm_Departments()
        {
            hrm_Departments1 = new HashSet<hrm_Departments>();
            hrm_Employees = new HashSet<hrm_Employees>();
        }

        [Key]
        public int DepartmentID { get; set; }

        [StringLength(50)]
        public string DepartmentCode { get; set; }

        [StringLength(150)]
        public string DepartmentName { get; set; }

        [StringLength(450)]
        public string DepartmentAddress { get; set; }

        public int? ParentID { get; set; }

        [StringLength(900)]
        public string KeyCode { get; set; }

        public virtual ICollection<hrm_Departments> hrm_Departments1 { get; set; }

        public virtual hrm_Departments hrm_Departments2 { get; set; }

        public virtual ICollection<hrm_Employees> hrm_Employees { get; set; }
    }
}
